﻿@model PropertyTypeCreator

@{
    string title = ViewBag.Title;
    string returnListUrl = ViewBag.ReturnListUrl;

    string controller = "propertyType";
   
    ViewBag.Title = "Tạo mới " + title;
}

<section class="content-header">
    <h1>
        @title.ToUpper() <small>tạo mới</small>
    </h1>
    <ol class="breadcrumb">
        <li>
            <a href="@Url.Action("Index", "Admin")">
                <i class="fa fa-home"></i> Trang chủ
            </a>
        </li>
        <li>
            <a href="@Url.Action("Index")">Danh sách @title</a>
        </li>
        <li class="active">Tạo mới</li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="col-md-5">
            @using (Html.BeginForm())
            {
                @Html.AntiForgeryToken()
                @Html.Hidden("ReturnListUrl", returnListUrl)

                <div class="box box-primary">
                    <div class="box-body">
                        <div class="form-group">
                            <label class="control-label">
                                Tên loại thuộc tính
                            </label>
                            @Html.TextBoxFor(m => m.Name, new { @class = "form-control" })
                            @Html.ValidationMessageFor(m => m.Name)
                        </div>
                    </div>
                    <div class="box-footer text-right">
                        <a href="@Request.UrlReferrer" class="btn btn-default pull-left">
                            <i class="fa fa-chevron-left"></i> Quay lại
                        </a>
                        <button type="reset" class="btn btn-warning">
                            <i class="fa fa-repeat"></i> Mặc định
                        </button>
                        <button type="submit" class="btn btn-success">
                            <i class="fa fa-check"></i> Xác nhận
                        </button>
                    </div>
                </div>
            }
        </div>
    </div>
</section>

@section scripts{
    <script>
        ActiveMenu('@controller');
    </script>
}